﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using easyList.Entities;

namespace easyList.Tools
{
    class SortTool
    {

        public static void sortArchiveByFileName(ArchiveObject archive)
        {
            archive.contentList.Sort(delegate(FileObject p1, FileObject p2)
            {
                return p1.filename.CompareTo(p2.filename);
            }
            );

        }


        public static void sortFileObjectListByFileName(List<FileObject> list)
        {
            list.Sort(delegate(FileObject p1, FileObject p2)
            {
                return p1.filename.CompareTo(p2.filename);
            }
            );

        }

    }
}
